package com.fulllife.food.enums;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.hswebframework.web.dict.EnumDict;

@Getter
@AllArgsConstructor
@JsonDeserialize(
        contentUsing = EnumDict.EnumDictJSONDeserializer.class
)
public enum FoodTypeDetailEnum implements EnumDict<String> {
    little_meat("小荤菜"),
    big_meat("大荤菜"),
    vegetable("素菜"),
    fruit("水果"),
    bean("豆制品"),

    milk("奶制品"),
    bread("面包"),
    cake("饼"),
    sausage("烤肠"),

    ;

    private final String text;

    @Override
    public String getValue() {
        return name();
    }

}
